import 'package:flutter_layout/base/route_auth_middle_ware.dart';
import 'package:flutter_layout/main/notfound_view_page.dart';
import 'package:flutter_layout/pages/custom/home_page.dart';
import 'package:flutter_layout/pages/login/login_view.dart';
import 'package:flutter_layout/pages/main/main_binding.dart';
import 'package:flutter_layout/pages/main/main_view.dart';
import 'package:flutter_layout/pages/my/my_view.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';
class Routes {
  static const String root = "/";
  static const String main = "/main";
  static const String home = "/home";
  static const String multiplex = "/multiplex";
  static const String notFound = "/notfound";
  static const String login = "/login";
  static const String my = "/my";
  // static final String count = "/count";
  // static final String storage = "/storage";
  // static final String connect = "/connect";
  // static final String webview = "/webview";
  // static final String rx_dart = "/rx_dart";

  static final unknownRoute = GetPage(
    name: notFound,
    page: () => const NotfoundView(),
  );

  static final List<GetPage> getPages = [
    GetPage(name: main, binding: MainBinding(), page: () => MainPage()),
    GetPage(name: home, binding: MainBinding(), page: () => const HomePage()),

    // 白名单
    GetPage(
      name: login,
      page: () => LoginPage(),
    ),

    GetPage(
      name: my,
      page: () => const MyPage(),
      middlewares: [
        RouteAuthMiddleware(priority: 1),
      ],
    ),
  ];

  // GetPage(name: main, binding: SBinding(), page: () => SPage()),
  // GetPage(name: multiplex,binding: MultiplexBinding(), page: () => MultiplexPage()),
  // GetPage(name: count,binding: CountBinding(), page: () => CountPage()),
  // GetPage(name: storage,binding: StorageBinding(), page: () => StoragePage()),
  // GetPage(name: connect,binding: ConnectBinding(), page: () => ConnectPage()),
  // GetPage(name: webview,binding: WebBinding(), page: () => WebPage()),
  // GetPage(name: rx_dart,binding: RxDartBinding(), page: () => RxDartPage()),

}
